package com.example.administrator.waitan.hot.week.weekcontent;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.example.administrator.waitan.R;
import com.example.administrator.waitan.base.BaseActivity;

/**
 * Created by Administrator on 2016/1/16.
 */
public class WeekContentActivity extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_weekcontent);
        final WebView pic = (WebView) findViewById(R.id.webView_item_lv_today_content);
        Intent intent = getIntent();
        String Id = getIntent().getStringExtra("ID");
        pic.getSettings().setJavaScriptEnabled(true);
        pic.setWebViewClient(new WebViewClient() {
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                view.loadUrl(url);
                return true;
            }
        });
        pic.loadUrl(Id);
    }
}
